package com.zero.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zero.entity.Result;
import com.zero.entity.Storage;

/**
 * (Storage)表服务接口
 *
 * @author makejava
 * @since 2022-04-24 18:02:19
 */
public interface StorageService extends IService<Storage> {

    /**
     * 扣除库存
     * @param goodsId 商品id
     * @param count 扣除数量
     * @return 扣除库存的结果
     */
    Result deductStorage(int goodsId, int count);
}

